package com.xypower.graph;



import java.util.ArrayList;
//图的点集
public class Node {
    public int value;               //自己数据项
    public int in;                  //点的入度
    public int out;                 //点的出度
    public ArrayList<Node> nexts;   //发散出去的边直接连接的点
    public ArrayList<Edge> edges;   //属于点的边

    public Node(int value) {
        this.value = value;
        in = 0;
        out = 0;
        nexts = new ArrayList<>();
        edges = new ArrayList<>();
    }
}
